var http = require('http')

var server = http.createServer()

server.on('request', function (request, response) {
    response.setHeader('Content-Type','text/plain;charset=utf-8')
    console.log('请求路径为' + request.url)
    response.write('winter老师爱听日文歌')
    response.end()
})

server.listen(3000, function () {
    console.log('服务器启动成功')
})